﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ListenMusic.Models.Reposistory.Public;
using ListenMusic.Models.Reposistory.User;
namespace ListenMusic.Controllers
{
    public class ApplicationController : Controller
    {
        public CategoryReposistory _category = new CategoryReposistory();
        public CountryReposistory _country = new CountryReposistory();
        public ListenMusic.Models.Reposistory.Public.SongReposistory _song = new ListenMusic.Models.Reposistory.Public.SongReposistory();
        public VideoReposistory _video = new VideoReposistory();
        public UploadResposistory _upload = new UploadResposistory();
        public AlbumReposistory _album = new AlbumReposistory();
        public MusicianReposistory _musician = new MusicianReposistory();
        public SingerReposistory _singer = new SingerReposistory();
        public PlaylistReposistory _playlist = new PlaylistReposistory();
        public DowloadReposistory _dowload = new DowloadReposistory();
        public ListenReposistory _listen = new ListenReposistory();
        public UserReposistory _user = new UserReposistory();
        public SearchReposistory _search = new SearchReposistory();
        public ListenMusic.Models.LogOnModel logon { get; set; }
        public ListenMusic.Models.Reposistory.User.User_CommentReposistory _comentUser = new Models.Reposistory.User.User_CommentReposistory();
        public ApplicationController()
        {
            ViewBag.menuCategory = _category.getCategory_byCountry();
            ViewBag.albumCountry = _country.getAllCountry();
            ViewBag.allType = _song.getAllType();
            ViewBag.logonModel = logon;
            
        }
    }
}
